/*
 *部门模块的js文件
 */
import request from '../utils/request'; //axios一个封装方法
////部门树形显示
export const DepartmentgetData = query => {
    return request({
        url: 'api/DepartmentInfo/DepartmentShow',
        method: 'get',
        params: query,
    });
};
//部门删除
export const DepartmentdeleteData = query => {
    return request({
        url: 'api/DepartmentInfo/Delete',
        method: 'delete',
        params: query
    });
};
//部门修改
export const DepartmentputData = query => {
    return request({
        url: 'api/DepartmentInfo/GetAll',
        method: 'put',
        data: query
    });
};
//部门显示单个
export const DepartmentgetDatabyId = query => {
    return request({
        url: 'api/DepartmentInfo/GetAll',
        method: 'get',
        data: query
    });
};
//部门用户显示
export const Departmentuserlist = query => {
    return request({
        url: 'api/DepartmentInfo/DepartmentFind',
        method: 'get',
        params:{id:query},
    });
};
//部门添加
export const Departmentpost = query => {
    return request({
        url: 'api/DepartmentInfo/DepartmentAdd',
        method: 'post',
        data: query
    });
};


